﻿cmake_minimum_required(VERSION 3.10)

# set the project name
project(Tutorial VERSION 1.0)

configure_file(TutorialConfig.h.in TutorialConfig.h)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# add the executable
add_executable(Tutorial tutorial.cxx)

# configured file will be written into the binary tree
# 这一行要在 add_executable 之后
target_include_directories(Tutorial PUBLIC "${PROJECT_BINARY_DIR}")

